package com.eddy.dao.impl;

import com.eddy.dao.UserDao;
import com.eddy.entity.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class UserDaoImpl implements UserDao {
    private String userName;
    private int age;

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public void setAge(int age) {
        this.age = age;
    }

    private List<String> strList;
    private Map<String, User> userMap;
    private Properties properties;

    public void setStrList(List<String> strList) {
        this.strList = strList;
    }
    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }
    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void save() {
        //System.out.println("UserName:"+this.userName+", Age:"+this.age);
        System.out.println("List:"+strList);
        System.out.println("Map:"+userMap);
        System.out.println("Properties:"+properties);
        System.out.println("Hello Word!");
    }
}
